﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataAccessLayer;

namespace Stationery_Store_Inventory_Management
{
    public class StoreRetrievalController
    {
         
        StoreRetrievalDAL sDal = new StoreRetrievalDAL();
       public IEnumerable<Object> getStoreRetrievalListCont()
        {
            var srl = sDal.getStoreRetrievalList();
            return srl;
        }
       public void AutoAllocateActualQtyCont()
       {
           sDal.AutoAllocateActualQty();
       }

       public void ConfirmWarehouseCollectionCont(String empId)
       {
           sDal.ConfirmWarehouseCollection(empId);
       }

       public IEnumerable<Object> getItemWiseDeptRequestsCont(String ic)
       {
           var ItemDeptReqs = sDal.getItemWiseDeptRequests(ic);
           return ItemDeptReqs;
       }

       public void allocateActualQtyCont(int rDepId, int actualQuantity)
       {
           sDal.allocateActualQty(rDepId, actualQuantity);
       }
       
        public void updateDeptReqDetActualQtyCont(List<int> lstDeptReqDetId, List<int> lstAllocatedQty)
       {
           sDal.updateDeptReqDetActualQty(lstDeptReqDetId, lstAllocatedQty);

       }


    }
}